﻿



using System; 
using System.Collections;
using System.Collections.Generic ;
using System.Runtime.Serialization;

namespace ufida.u9.ait.openapi
{
	/// <summary>
	/// 请购单DTO DTO :REST自定义的数据传输类型 
	/// 
	/// </summary>
	[DataContract(Namespace = "ufida.u9.ait.openapi")]
	[Serializable]
	public partial class PRAITDTOData  
	{
		/// <summary>
		/// Default Constructor
		/// </summary>
		public PRAITDTOData()
		{
			initData();
		}
		private void initData()
		{
		
		
		
		
		
		
		
		
		
		
					BizType= -1; 
		
			//调用默认值初始化服务进行配置方式初始化
			UFSoft.UBF.Service.DTOService.InitConfigDefault(this);
		}
		[System.Runtime.Serialization.OnDeserializing]
		internal void OnDeserializing(System.Runtime.Serialization.StreamingContext context)
		{
			 initData();
		}
		#region Do SerializeKey -ForDTODataType
		//只为处理集合型EntityKey。原因集合型EntityKey由于使用臫的集合对象，无法实现数据共享.-UBF专用.
		public void DoSerializeKeyList(IDictionary dict)
		{
			if (dict == null ) dict = new Hashtable() ;
			if (dict[this] != null)
				return ;
			dict[this] = this;
	        			if (this.PRLineList!=null)
			{
				foreach(ufida.u9.ait.openapi.PRLineAITDTOData objdata in this.PRLineList)
				{
					objdata.DoSerializeKeyList(dict);
				}
			}
				        			if (this.PRDocType != null) 
			{
				this.PRDocType.DoSerializeKeyList(dict);
			}
	        			if (this.Org != null) 
			{
				this.Org.DoSerializeKeyList(dict);
			}
	        			if (this.FC != null) 
			{
				this.FC.DoSerializeKeyList(dict);
			}
	        	        	        			if (this.ReqDepartment != null) 
			{
				this.ReqDepartment.DoSerializeKeyList(dict);
			}
	        			if (this.ReqEmployee != null) 
			{
				this.ReqEmployee.DoSerializeKeyList(dict);
			}
	        	        			if (this.DescFlexField != null) 
			{
				this.DescFlexField.DoSerializeKeyList(dict);
			}
	        
		}
		#endregion 
		/// <summary>
		/// Constructor Full Argument
		/// </summary>
		public PRAITDTOData(  List<ufida.u9.ait.openapi.PRLineAITDTOData> pRLineList  , ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData pRDocType  , ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData org  , ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData fC  , System.String docNo  , System.String businessDate  , ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData reqDepartment  , ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData reqEmployee  , System.String memo  , ufida.u9.ait.openapi.CopyOfDescFlexSegmentsData descFlexField  , System.Int32 bizType  )
		{
			initData();
			this.PRLineList = pRLineList;
			this.PRDocType = pRDocType;
			this.Org = org;
			this.FC = fC;
			this.DocNo = docNo;
			this.BusinessDate = businessDate;
			this.ReqDepartment = reqDepartment;
			this.ReqEmployee = reqEmployee;
			this.Memo = memo;
			this.DescFlexField = descFlexField;
			this.BizType = bizType;
		}
		#region System Fields 
		//--系统字段,目前没有.EntityData上有相应的字段,用于保存相关的实体状态信息,DTO上没有状态信息.	
		#endregion
		
		#region DTO Properties 
	
		

		/// <summary>
		/// 请购单行
		/// 请购单DTO.Misc.请购单行
		/// </summary>
		private List<ufida.u9.ait.openapi.PRLineAITDTOData> m_pRLineList ;
		[DataMember(IsRequired=false)]
		public List<ufida.u9.ait.openapi.PRLineAITDTOData> PRLineList
		{
			get	
			{	
				if (m_pRLineList == null )
				{
					List<ufida.u9.ait.openapi.PRLineAITDTOData> n_m_list = new List<ufida.u9.ait.openapi.PRLineAITDTOData>() ;
					m_pRLineList = n_m_list ;
				}
				return m_pRLineList ;
			}
			set	
			{	
				m_pRLineList = value ;	
			}
		}
			
		

		/// <summary>
		/// 单据类型
		/// 请购单DTO.Misc.单据类型
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData m_pRDocType ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData PRDocType
		{
			get	
			{	
				return m_pRDocType ;
			}
			set	
			{	
				m_pRDocType = value ;	
			}
		}
			
		

		/// <summary>
		/// 组织
		/// 请购单DTO.Misc.组织
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData m_org ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData Org
		{
			get	
			{	
				return m_org ;
			}
			set	
			{	
				m_org = value ;	
			}
		}
			
		

		/// <summary>
		/// 币种
		/// 请购单DTO.Misc.币种
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData m_fC ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData FC
		{
			get	
			{	
				return m_fC ;
			}
			set	
			{	
				m_fC = value ;	
			}
		}
			
		

		/// <summary>
		/// 单号
		/// 请购单DTO.Misc.单号
		/// </summary>
		private System.String m_docNo ;
		[DataMember(IsRequired=false)]
		public System.String DocNo
		{
			get	
			{	
				return m_docNo ;
			}
			set	
			{	
				m_docNo = value ;	
			}
		}
			
		

		/// <summary>
		/// 日期
		/// 请购单DTO.Misc.日期
		/// </summary>
		private System.String m_businessDate ;
		[DataMember(IsRequired=false)]
		public System.String BusinessDate
		{
			get	
			{	
				return m_businessDate ;
			}
			set	
			{	
				m_businessDate = value ;	
			}
		}
			
		

		/// <summary>
		/// 需求部门
		/// 请购单DTO.Misc.需求部门
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData m_reqDepartment ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData ReqDepartment
		{
			get	
			{	
				return m_reqDepartment ;
			}
			set	
			{	
				m_reqDepartment = value ;	
			}
		}
			
		

		/// <summary>
		/// 需求人员
		/// 请购单DTO.Misc.需求人员
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData m_reqEmployee ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData ReqEmployee
		{
			get	
			{	
				return m_reqEmployee ;
			}
			set	
			{	
				m_reqEmployee = value ;	
			}
		}
			
		

		/// <summary>
		/// 备注
		/// 请购单DTO.Misc.备注
		/// </summary>
		private System.String m_memo ;
		[DataMember(IsRequired=false)]
		public System.String Memo
		{
			get	
			{	
				return m_memo ;
			}
			set	
			{	
				m_memo = value ;	
			}
		}
			
		

		/// <summary>
		/// 描述性弹性域
		/// 请购单DTO.Misc.描述性弹性域
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfDescFlexSegmentsData m_descFlexField ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfDescFlexSegmentsData DescFlexField
		{
			get	
			{	
				return m_descFlexField ;
			}
			set	
			{	
				m_descFlexField = value ;	
			}
		}
			
		

		/// <summary>
		/// 业务类型
		/// 请购单DTO.Misc.业务类型
		/// </summary>
		private System.Int32 m_bizType ;
		[DataMember(IsRequired=false)]
		public System.Int32 BizType
		{
			get	
			{	
				return m_bizType ;
			}
			set	
			{	
				m_bizType = value ;	
			}
		}
			
		#endregion	

		#region Multi_Fields
																						
		#endregion 
	} 	
}
